<?php
$PageTitle = 'Create User';
include('includes/header.php');

$firstname = isset($_REQUEST['firstname']) ? $_REQUEST['firstname'] : '';
$lastname = isset($_REQUEST['lastname']) ? $_REQUEST['lastname'] : '';
$email = isset($_REQUEST['email']) ? $_REQUEST['email'] : '';
$identifier = isset($_REQUEST['identifier']) ? $_REQUEST['identifier'] : '';
$username = isset($_REQUEST['username']) ? $_REQUEST['username'] : '';

?>

 
<div class="info">
Hey! It looks like you're new here. 
If you think you've already made an account, you may have signed in with a different service. 
Just click <a href="logout.php">here</a> to logout and try again with the correct service. 
If you want to contribute to the site (voting, posting, etc), fill in the info below to create your profile, and you'll be good to go.
</div>
<form name="createUser" method="post" action="insert-user.php">
<table align="center">
	<tr><th>First Name</th><td><input type="text" name="firstname" value="<?php echo $firstname?>"></td></tr>
	<tr><th>Last Name</th><td><input type="text" name="lastname" value="<?php echo $lastname?>"></td></tr>
	<tr><th>Email</th><td><input type="text" name="email" value="<?php echo $email?>"></td></tr>
	<tr><th>User Name</th><td><input type="text" name="username" value="<?php echo $username?>"></td></tr>
	<tr><td colspan="2" align="right"><input type="submit" class="submit" value="Submit"></td></tr>
</table>
<input type="hidden" name="identifier" value="<?php echo $identifier?>">
</form>

<?php include('includes/footer.html')?>
</body>
</html>